//
//  KLTopTabBar.h
//  Test
//
//  Created by apple on 2017/12/4.
//  Copyright © 2017年 bonc. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol KLTopTabBarDelegate <NSObject>

@optional
//点击第几个按钮
- (void)selectTabItemAtIndex:(NSUInteger)index;
@end

@interface KLTopTabBar : UIView

@property (nonatomic, weak) id<KLTopTabBarDelegate>delegate;

- (instancetype)initWithFrame:(CGRect)frame titles:(NSArray<NSString *>*)titles;

- (void)selectDefaultTabItem:(NSUInteger)index;

@end
